﻿using RabbitMQ.Client;

namespace AutoTest.Domain
{
    /// <summary>
    /// 常量
    /// </summary>
    public static class AppConsts
    {
        /// <summary>
        /// Redis连接字符串节点
        /// </summary>
        public const string REDIST_CONNECTSTRING_NODE = "Redis";

        /// <summary>
        /// 自动测试应用链接字符串
        /// </summary>
        public const string MYSQL_CONNECTSTRING = "AutoTestApp";

        /// <summary>
        /// REDIS
        /// </summary>
        public const string REDIS_HASHSET_APPSETTING = "AppSetting";

        /// <summary>
        /// 授权验证参数缓存缓存前缀
        /// </summary>
        public const string REDIS_AUTH_CACHE_PREFIX = "WECHAT_";
        /// <summary>
        /// 微信Access_Token缓存Key
        /// </summary>
        public const string REDIS_WECHAT_ACCESS_TOKEN = "wechat-access-token";

        /// <summary>
        /// 微信Acess_Tokon过期时间，单位秒
        /// </summary>
        public const int REDIS_WECHAT_ACCESS_TOKEN_EXPIRE_SECONDS = 7000;

        /// <summary>
        /// AppSetting 微信配置的分组名称
        /// </summary>
        public const string APPSETTING_WECHAT_APP = "WechatApp";

        /// <summary>
        /// 应用配置
        /// </summary>
        public const string APPSETTING_APP = "Appsetting";

        /// <summary>
        /// Jwt配置
        /// </summary>
        public const string APPSETTING_JWT = "JwtOption";
        /// <summary>
        /// 邮箱配置
        /// </summary>
        public const String APPSETTING_MAILKIT = "MailKit";

        /// <summary>
        /// RabbitMQ配置
        /// </summary>
        public const string APPSETTING_RABBITMQ = "RabbitMQ";
        /// <summary>
        /// JWT的前缀
        /// </summary>
        public const string AUTHORIZATION_JWT_PREFIX = "Bearer";
        /// <summary>
        /// 
        /// </summary>
        public const string TENPAY_CALLBACK_RESULT_SUCCESS = "success";
        /// <summary>
        /// 
        /// </summary>
        public const string TENPAY_CALLBACK_RESULT_FAIL = "fail";
        /// <summary>
        /// 应用环境
        /// </summary>
        public const string APPLICATION_ENVIROMENT_DEVELOPMENT = "Development";
        /// <summary>
        /// 后天管理系统前缀
        /// </summary>
        public const string ADMIN_MANAGE_START_SEGMENT = "/admin";
    }
}
